add_custom_target(doc
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/doc
COMMAND xelatex doc.tex
)

add_custom_target(clean_doc
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/doc
COMMAND rm -rf *.pdf *.aux *.log
)
# add_test(NAME Spline_test COMMAND "${PROJECT_SOURCE_DIR}/bin/test/Spline_test_cmake")
# set_tests_properties (PolyInterp_test
# PROPERTIES FAIL_REGULAR_EXPRESSION "failed")